package com.zhongyouyun.admin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2022-04-24
 * @Description: 
 */

@ApiModel(value="LogModel对象", description="日志")
@Data
@TableName("z_log")
@Accessors(chain = true)
public class LogModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "账号")
    @TableField("xiangmu_type")
    private String xiangMuType;

    @ApiModelProperty(value = "创建人")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "名称")
    @TableField("true_name")
    private String trueName;

    @ApiModelProperty(value = "方法名")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "参数")
    @TableField("params")
    private String params;

    @ApiModelProperty(value = "访问IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private Date createDate;

    @ApiModelProperty(value = "类型 ： 查询、新增等等")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "部门id")
    @TableField("dept_id")
    @JsonInclude
    private Long deptId;

    @ApiModelProperty(value = "模块")
    @TableField("model")
    private String model;

    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "操作结果")
    @TableField("result")
    private String result;

    @ApiModelProperty(value = "详情")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "请求url")
    @TableField("url")
    private String url;


}